<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ include file="/WEB-INF/common/taglibs.jsp"%>
<c:set var="base" value="${pageContext.request.contextPath}"/>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="content-type" content="text/html; charset=UTF-8">
	<title>KCFinder: /images/public</title>
	<link href="<c:url value='/js/plugins/docmanager/css/css.css'/>" rel="stylesheet" type="text/css" />
	<link href="<c:url value='/js/plugins/docmanager/themes/oxygen/style.css'/>" rel="stylesheet" type="text/css" />

	<!-- <script type="text/javascript" src="<c:url value='/js/plugins/docmanager/js/jquery.js'/>"></script> -->
	<script type="text/javascript" src="<c:url value='/js/plugins/jquery-1.7.min.js'/>"></script>
	<script type="text/javascript" src="<c:url value='/js/plugins/docmanager/js/jquery.rightClick.js'/>"></script>
	<script type="text/javascript" src="<c:url value='/js/plugins/docmanager/js/jquery.drag.js '/>"></script>
	
	<script src="<c:url value='/js/plugins/docmanager/helper.js'/>" type="text/javascript"></script>
	<script src="<c:url value='/js/plugins/docmanager/joiner.js'/>" type="text/javascript"></script>
	<!-- <script src="<c:url value='/js/plugins/docmanager/js/browser/init.js'/>" type="text/javascript"></script> -->
	
	<!-- The jQuery UI widget factory -->
	<script type="text/javascript">
	
				browser.version = "2.51";
				browser.support.chromeFrame = true;
				browser.support.zip = true;
				browser.support.check4Update = false;
				browser.lang = "en";
				browser.type = "images";
				browser.theme = "oxygen";
				browser.access = {
					"files" : {
						"upload" : true,
						"delete" : true,
						"copy" : true,
						"move" : true,
						"rename" : true
					},
					"dirs" : {
						"create" : true,
						"delete" : true,
						"rename" : true
					}
				};
				//服务器的根地址,这是文件存储的根路径
				browser.base = "${base}";
				//初始化文件地址, 
				browser.dir = "${dir}";
				//基础地址,一般为空
				browser.uploadURL = "/www_resource";
				//缩略图地址（直接选择缩略图时,根据该地址动态查找）
				//缩略图默认将放在一个/.thumbs目录下,其目录结构与原始文件目录结构相同.
				//当选择缩略图时,从缩略图文件查找
				browser.thumbsURL = "/.thumbs";
				//中等缩略图地址
				browser.mediumURL = "/.mediums";
				//kcfinder操作(数据访问)的基础地址
				//browser.baseURL = "<c:url value='/file/manage/'/>";
				browser.baseURL = "<c:url value='/kcfinder/browse.kc'/>";
				browser.cms = "";

				//cookies相关
				_.kuki.domain = "localhost:8088";
				_.kuki.path = "/";
				_.kuki.prefix = "KCFINDER_";
				
				$(document).ready(function() {
					browser.resize();
					browser.init();
					
					$('#all').css('visibility', 'visible');
				});
				$(window).resize(browser.resize);
</script>
	</head>
	<body>
		<script type="text/javascript">
			$('body').noContext();
		</script>				
		<div id="resizer"></div>
		<div id="shadow"></div>
		<div id="dialog"></div>
		<div id="alert"></div>
		<div id="clipboard"></div>
		<div id="all">
			<div id="left">
		    	<div id="folders"></div>
			</div>
			<div id="right">
	    		<div id="toolbar">
		        	<div>
		        		<a href="kcact:upload">Upload</a>
				        <a href="kcact:refresh">Refresh</a>
				        <a href="kcact:settings">Settings</a>
				        <a href="kcact:maximize">Maximize</a>
				        <a href="kcact:about">About</a>
				        <div id="loading"></div>
				        <div><span class="close"></span></div>
		        	</div>
	    		</div>
			    <div id="settings">
			    
				    <div>
				     <fieldset>
						<legend>View</legend>
						    <table summary="view" id="view"><tr>
						    <th><input id="viewThumbs" type="radio" name="view" value="thumbs" /></th>
						    <td><label for="viewThumbs">&nbsp;Thumbnails</label> &nbsp;</td>
						    <th><input id="viewList" type="radio" name="view" value="list" /></th>
						    <td><label for="viewList">&nbsp;List</label></td>
						    </tr></table>
						</fieldset>
		    		</div>
		    		<div>
					    <fieldset>
					    	<legend>Show</legend>
					        <table summary="show" id="show"><tr>
					        <th><input id="showName" type="checkbox" name="name" /></th>
					        <td><label for="showName">&nbsp;Name</label> &nbsp;</td>
					        <th><input id="showSize" type="checkbox" name="size" /></th>
					        <td><label for="showSize">&nbsp;Size</label> &nbsp;</td>
					        <th><input id="showTime" type="checkbox" name="time" /></th>
					        <td><label for="showTime">&nbsp;Date</label></td>
					        </tr></table>
					    </fieldset>
				    </div>
				    
				    <div>
					    <fieldset>
					    	<legend>Order by:</legend>
						        <table summary="order" id="order"><tr>
						        <th><input id="sortName" type="radio" name="sort" value="name" /></th>
						        <td><label for="sortName">&nbsp;Name</label> &nbsp;</td>
						        <th><input id="sortType" type="radio" name="sort" value="type" /></th>
						        <td><label for="sortType">&nbsp;Type</label> &nbsp;</td>
						        <th><input id="sortSize" type="radio" name="sort" value="size" /></th>
						        <td><label for="sortSize">&nbsp;Size</label> &nbsp;</td>
						        <th><input id="sortTime" type="radio" name="sort" value="date" /></th>
						        <td><label for="sortTime">&nbsp;Date</label> &nbsp;</td>
						        <th><input id="sortOrder" type="checkbox" name="desc" /></th>
						        <td><label for="sortOrder">&nbsp;Descending</label></td>
						        </tr></table>
					    	</fieldset>
					    </div>
					</div>
				    <div id="files">
				        <div id="content"></div>
				    </div>
				</div>
			<div id="status"><span id="fileinfo">&nbsp;</span></div>
		</div>
	</body>
</html>